package cn.snowheart.command.command;

import cn.snowheart.command.inter.GarageDoor;

/**
 * 车库开门的命令
 *
 * @author liuwanxiang
 * @version 2019/07/04
 */
public class GarageDoorOpenCommand implements Command {

    private GarageDoor garageDoor;

    public GarageDoorOpenCommand(GarageDoor garageDoor) {
        this.garageDoor = garageDoor;
    }

    @Override
    public void execute() {
        garageDoor.open();
    }
}
